package com.zfc.threadpool;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;

/**
 * @author zfc
 * @version 1.0
 */

@SpringBootApplication
public class DynamicThreadPoolApplication {

    public static void main(String[] args) {

        SpringApplication application = new SpringApplication(DynamicThreadPoolApplication.class);
        application.setApplicationStartup(new BufferingApplicationStartup(2048));
        application.run(args);
        System.out.println("===================\n动态线程池启动成功\n===================");
    }
}
